package com.gxuwz.stats.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;

@TableName("rsp_research_project")
public class ResearchProject {
    @TableId(type = IdType.AUTO)
    private int projectId;
    private int userId;

    private String projectYear;

    @ExcelProperty(value = "项目名称")
    private String projectName;
    @ExcelProperty(value = "项目级别")
    private String projectLevel;
    @ExcelProperty(value = "类别")
    private String projectCategory;
    @ExcelProperty(value = "项目状态")
    private String projectStatus;
    @ExcelProperty(value = "经费（万）")
    private Double projectFunding;
    @ExcelProperty(value = "分值")
    private int projectScore;

    @ExcelProperty("姓名")
    @TableField(exist = false)
    private String username;

    @TableField(exist = false) // 非数据库字段
    private int projectTotalScore; // 总分值

    @TableField(exist = false) // 非数据库字段
    private String projectNotes; // 备注


    public int getProjectId() {
        return projectId;
    }

    public void setProjectId(int projectId) {
        this.projectId = projectId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }


    public String getProjectCategory() {
        return projectCategory;
    }

    public void setProjectCategory(String projectCategory) {
        this.projectCategory = projectCategory;
    }

    public String getProjectStatus() {
        return projectStatus;
    }

    public void setProjectStatus(String projectStatus) {
        this.projectStatus = projectStatus;
    }

    public Double getProjectFunding() {
        return projectFunding;
    }

    public void setProjectFunding(Double projectFunding) {
        this.projectFunding = projectFunding;
    }

    public int getProjectScore() {
        return projectScore;
    }

    public void setProjectScore(int projectScore) {
        this.projectScore = projectScore;
    }

    public String getProjectLevel() {
        return projectLevel;
    }

    public void setProjectLevel(String projectLevel) {
        this.projectLevel = projectLevel;
    }

    public String getProjectYear() {
        return projectYear;
    }

    public void setProjectYear(String projectYear) {
        this.projectYear = projectYear;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getProjectTotalScore() {
        return projectTotalScore;
    }

    public void setProjectTotalScore(int projectTotalScore) {
        this.projectTotalScore = projectTotalScore;
    }

    public String getProjectNotes() {
        return projectNotes;
    }

    public void setProjectNotes(String projectNotes) {
        this.projectNotes = projectNotes;
    }

    @Override
    public String toString() {
        return "ResearchProject{" +
                "projectId=" + projectId +
                ", userId=" + userId +
                ", projectYear='" + projectYear + '\'' +
                ", projectName='" + projectName + '\'' +
                ", projectLevel='" + projectLevel + '\'' +
                ", projectCategory='" + projectCategory + '\'' +
                ", projectStatus='" + projectStatus + '\'' +
                ", projectFunding=" + projectFunding +
                ", projectScore=" + projectScore +
                ", username='" + username + '\'' +
                ", projectTotalScore=" + projectTotalScore +
                ", projectNotes='" + projectNotes + '\'' +
                '}';
    }
}
